home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpbrushes" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpbrushes</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpbrushes</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-brushes-popup">gimp_brushes_popup</link> (<link linkend="gchar">gchar</link> *brush_callback,
- <link linkend="gchar">gchar</link> *popup_title,
- <link linkend="gchar">gchar</link> *initial_brush,
- <link linkend="gdouble">gdouble</link> opacity,
- <link linkend="gint">gint</link> spacing,
- <link linkend="GimpLayerModeEffects">GimpLayerModeEffects</link> paint_mode);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-brushes-close-popup">gimp_brushes_close_popup</link> (<link linkend="gchar">gchar</link> *brush_callback);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-brushes-set-popup">gimp_brushes_set_popup</link> (<link linkend="gchar">gchar</link> *brush_callback,
- <link linkend="gchar">gchar</link> *brush_name,
- <link linkend="gdouble">gdouble</link> opacity,
- <link linkend="gint">gint</link> spacing,
- <link linkend="GimpLayerModeEffects">GimpLayerModeEffects</link> paint_mode);
- <link linkend="gchar">gchar</link>* <link linkend="gimp-brushes-get-brush-data">gimp_brushes_get_brush_data</link> (<link linkend="gchar">gchar</link> *name,
- <link linkend="gdouble">gdouble</link> *opacity,
- <link linkend="gint">gint</link> *spacing,
- <link linkend="GimpLayerModeEffects">GimpLayerModeEffects</link> *paint_mode,
- <link linkend="gint">gint</link> *width,
- <link linkend="gint">gint</link> *height,
- <link linkend="gint">gint</link> *length,
- <link linkend="guint8">guint8</link> **mask_data);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-brushes-popup">gimp_brushes_popup ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_brushes_popup (<link linkend="gchar">gchar</link> *brush_callback,
- <link linkend="gchar">gchar</link> *popup_title,
- <link linkend="gchar">gchar</link> *initial_brush,
- <link linkend="gdouble">gdouble</link> opacity,
- <link linkend="gint">gint</link> spacing,
- <link linkend="GimpLayerModeEffects">GimpLayerModeEffects</link> paint_mode);</programlisting>
- <para>
- Invokes the Gimp brush selection.
- </para>
- <para>
- This procedure popups the brush selection dialog.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>brush_callback</parameter> :</entry>
- <entry> The callback PDB proc to call when brush selection is made.
- </entry></row>
- <row><entry align="right"><parameter>popup_title</parameter> :</entry>
- <entry> Title to give the brush popup window.
- </entry></row>
- <row><entry align="right"><parameter>initial_brush</parameter> :</entry>
- <entry> The name of the brush to set as the first selected.
- </entry></row>
- <row><entry align="right"><parameter>opacity</parameter> :</entry>
- <entry> The initial opacity of the brush.
- </entry></row>
- <row><entry align="right"><parameter>spacing</parameter> :</entry>
- <entry> The initial spacing of the brush (if < 0 then use brush default spacing).
- </entry></row>
- <row><entry align="right"><parameter>paint_mode</parameter> :</entry>
- <entry> The initial paint mode.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-brushes-close-popup">gimp_brushes_close_popup ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_brushes_close_popup (<link linkend="gchar">gchar</link> *brush_callback);</programlisting>
- <para>
- Popdown the Gimp brush selection.
- </para>
- <para>
- This procedure closes an opened brush selection dialog.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>brush_callback</parameter> :</entry>
- <entry> The name of the callback registered for this popup.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-brushes-set-popup">gimp_brushes_set_popup ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_brushes_set_popup (<link linkend="gchar">gchar</link> *brush_callback,
- <link linkend="gchar">gchar</link> *brush_name,
- <link linkend="gdouble">gdouble</link> opacity,
- <link linkend="gint">gint</link> spacing,
- <link linkend="GimpLayerModeEffects">GimpLayerModeEffects</link> paint_mode);</programlisting>
- <para>
- Sets the current brush selection in a popup.
- </para>
- <para>
- Sets the current brush selection in a popup.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>brush_callback</parameter> :</entry>
- <entry> The name of the callback registered for this popup.
- </entry></row>
- <row><entry align="right"><parameter>brush_name</parameter> :</entry>
- <entry> The name of the brush to set as selected.
- </entry></row>
- <row><entry align="right"><parameter>opacity</parameter> :</entry>
- <entry> The initial opacity of the brush.
- </entry></row>
- <row><entry align="right"><parameter>spacing</parameter> :</entry>
- <entry> The initial spacing of the brush (if < 0 then use brush default spacing).
- </entry></row>
- <row><entry align="right"><parameter>paint_mode</parameter> :</entry>
- <entry> The initial paint mode.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-brushes-get-brush-data">gimp_brushes_get_brush_data ()</title>
- <programlisting><link linkend="gchar">gchar</link>* gimp_brushes_get_brush_data (<link linkend="gchar">gchar</link> *name,
- <link linkend="gdouble">gdouble</link> *opacity,
- <link linkend="gint">gint</link> *spacing,
- <link linkend="GimpLayerModeEffects">GimpLayerModeEffects</link> *paint_mode,
- <link linkend="gint">gint</link> *width,
- <link linkend="gint">gint</link> *height,
- <link linkend="gint">gint</link> *length,
- <link linkend="guint8">guint8</link> **mask_data);</programlisting>
- <para>
- Retrieve information about the currently active brush (including
- data).
- </para>
- <para>
- This procedure retrieves information about the currently active
- brush. This includes the brush name, and the brush extents (width
- and height). It also returns the brush data.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>name</parameter> :</entry>
- <entry> the brush name (\"\" means current active pattern).
- </entry></row>
- <row><entry align="right"><parameter>opacity</parameter> :</entry>
- <entry> The brush opacity.
- </entry></row>
- <row><entry align="right"><parameter>spacing</parameter> :</entry>
- <entry> The brush spacing.
- </entry></row>
- <row><entry align="right"><parameter>paint_mode</parameter> :</entry>
- <entry> The paint mode.
- </entry></row>
- <row><entry align="right"><parameter>width</parameter> :</entry>
- <entry> The brush width.
- </entry></row>
- <row><entry align="right"><parameter>height</parameter> :</entry>
- <entry> The brush height.
- </entry></row>
- <row><entry align="right"><parameter>length</parameter> :</entry>
- <entry> Length of brush mask data.
- </entry></row>
- <row><entry align="right"><parameter>mask_data</parameter> :</entry>
- <entry> The brush mask data.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The brush name.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-